CSharpTest.Net
TryAdd(TKey,Converter<TKey,TValue>) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > SynchronizedDictionary<TKey,TValue> Class > TryAdd Method : TryAdd(TKey,Converter<TKey,TValue>) Method

key
fnCreate

Glossary Item Box

Adds an element with the provided key and value to the IDictionary by calling the provided factory method to construct the value if the key is not already present in the collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Function TryAdd( _
   ByVal key As TKey, _
   ByVal fnCreate As Converter(Of TKey,TValue) _
) As Boolean
C# 
public bool TryAdd( 
   TKey key,
   Converter<TKey,TValue> fnCreate
)

Parameters

key
fnCreate

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys